package com.asa.login.http

import com.asa.common.net.BaseHttpResponse
import com.asa.login.entity.UserInfo
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.POST

/**
 * create By：anderson
 * on 2022/3/20
 * desc:
 */
interface LoginService {


    @POST("user/login")
    @FormUrlEncoded
    suspend fun loginAction(
        @Field("username") username: String,
        @Field("password") password: String
    ): BaseHttpResponse<UserInfo>
}